package com.cgwx.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 调度方
 */
public enum ManageWorker implements InfoEnum{
    SYSTEM("SYSTEM","系统方"),
    ADMIN("ADMIN","实验中心管理员"),
    ;

    private String code;
    private String info;

    public String getCode() {
        return code;
    }

    @JsonValue
    public String getInfo() {
        return info;
    }

    ManageWorker(String code, String info) {
        this.code = code;
        this.info = info;
    }


    @Override
    public String getSelfCode() {
        return this.code;
    }

    @Override
    public String getSelfInfo() {
        return this.info;
    }
}
